//app.js
App({
    onLaunch: function () {
        wx.cloud.init({
            env: 'cloud1-4g3xhduc6691437c',
            traceUser: true
        })
        const ui = wx.getStorageSync("userInfo")
        if (Object.keys(ui).length === 0) {
            // if (!ui.nickName) {
            wx.switchTab({
                url: '/pages/me/me',
            })
        }
    }
})